package xpn.business.fund_return.entity.assistance_return_notice;

import org.springframework.data.rest.webmvc.RepositoryRestController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xpn.platform.common.repository.XpnRepositoryController;

import javax.annotation.Resource;

@RestController
@RepositoryRestController
@RequestMapping("assistanceReturnNotice")
public class AssistanceReturnNoticeController extends XpnRepositoryController<AssistanceReturnNotice, Long> {

    @Resource
    private AssistanceReturnNoticeService assistanceReturnNoticeService;

    @PostMapping("")
    public AssistanceReturnNotice saveAssistanceReturnNotice(@RequestBody AssistanceReturnNotice assistanceReturnNotice) {
        return assistanceReturnNoticeService.save(assistanceReturnNotice);
    }
}
